package models

import (
	"github.com/astaxie/beego/orm"
)

type Person struct {
	Id int64
	Name string
	Password string
}

type Client struct {
	Id int64
	ClientId string
	Secret string
}

type Record struct {
	Id int64
	Token string
	ClientMark string
	ExpiresAt int64
	Valid bool
}

// 使用beego/orm的例子
func init() {
    //注册定义的model
    orm.RegisterModel(new(Person), new(Record), new(Client))
}